<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{Title} (Edit) </title>
<link rel="stylesheet" href="../../css/mem_main.css" type="text/css">
<script Language="JavaScript1.2" type="text/javascript" src="/inc/layshow.js"></script>
<script Language="JavaScript1.2" type="text/javascript" src="/inc/checkdata_{intLang}.js"></script>
<script Language="JavaScript">
<!--
function finalcheck(){
	with(document.beMemberFrm){
		if(Check(document.beMemberFrm)){
			if(!isEmpty(document.beMemberFrm["data[Password_x]"].value)){
				if(!CheckillegalPassword(document.beMemberFrm["data[Password_x]"], document.beMemberFrm["Password_c"]))return;
			}

			if(confirm("{Edit_alert}")){//假如您修改此代理商，\n將會讓此代理商和其下線暫時登出！\n確定修改？
				submit();
			}else{
				return;
			}
		}
	}
}

function backlist(){
	with(document.beMemberFrm){
		op.value = "List";
		submit();
	}
}

function open_win(){
	user_window.style.top = "77";
	user_window.style.left = "250";
	document.getElementById("user_window").style.display="block";
}

function close_win(){
	document.getElementById("user_window").style.display="none";
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">

<!-- 檢驗資料用 //-->
<form name="CheckDataForm">
	<input type="hidden" name="required" value="text;data[Name_x];{MemName}">
</form>
<!-- End //-->

<form name="beMemberFrm" action="index.php" method="Post">
<input type="hidden" name="op" value="Update">
<input type="hidden" name="ID" value="{intID}">
<input type="hidden" name="Page" value="{Page}">
<table width="770" border="0" cellspacing="0" cellpadding="0" class="cmti">
  <tr> 
    <td>{Title}: {_Edit} -- 
      <input type="button" value="{_List}" class="zabutton" onClick="location.href='index.php?op=Lists'">
      <input type="button" value="{_Search}" class="zabutton" onClick="location.href='index.php?op=Search'">
    </td>
  </tr>
</table>
<div class="ctabdv"> 
  <table width="500" border="0" cellspacing="1" cellpadding="0" class="ctab">
    <tr class="clef"> 
      <td class="ctigaed">{Account}</td>
      <td>{ShowAccount}</td>
    </tr>
    <tr class="clef"> 
      <td class="ctigaed">{Password}</td>
      <td><input type="password" name="data[Password_x]" size="10" class="zatexted" value="" onfocus="open_win()" onmouseover="open_win()" onmouseout="close_win()" onblur="close_win()">(Password: <a style="color: #FF0000">{ShowPassword}</a>)</td>
    </tr>
    <tr class="clef"> 
      <td class="ctigaed">{BetPassword}</td>
      <td><input type="password" name="Password_c" size="10" class="zatexted" value=""></td>
    </tr>
    <tr class="clef"> 
      <td colspan="2" class="cedfoot"> 
        <input type="button" value="{_EditSubmit}" class="zabutton" onclick="finalcheck()">&nbsp;&nbsp;&nbsp; 
        <input type="button" value="{_BackList}" class="zabutton" onclick="backlist()">
      </td>
    </tr>
  </table>
</div>
</form>

<div id="user_window" style="display: none;position:absolute; background-color: #FFFF00">
<table width="340" border="0" cellspacing="1" cellpadding="2" bgcolor="00558E">
  <tr>
    <td bgcolor="#FFFFFF">
		<table width="340" border="0" cellspacing="0" cellpadding="0" class="m_tab_fix" >
			<tr bgcolor="0163A2"> 
				<td width="320" style="font-size:12px"><font color="#FFFFFF">&nbsp;Tip</font></td>
				<td align="right" valign="top" ><a style="cursor:hand;" onClick="close_win();"><img src="/images/edit_dot.gif" width="16" height="14"></a></td>
			</tr>
			<tr bgcolor="#000000"><td colspan="2" height="1"></td></tr>
			<tr bgcolor="#D8E4F8"><td colspan="2" style="font-size:12px">{PWD_Tip}</td></tr>
      </table>
    </td>
  </tr>
</table>
</div>
</body>
</html>
